package com.briup.day12.bean;

public abstract class Animal {
    private String name;
    public String getName() {
        return name;
    }

    public Animal(String name) {
        System.out.println("有参");
        this.name = name;
    }

    public Animal() {
        System.out.println("无参");
    }
    public abstract void eat();
    public abstract void sleep();
}
